import numpy as np
import matplotlib.pyplot as plt

plt.figure(1)

color = ['black', 'green', 'red', 'blue', 'grey', 'coral', 'orange', "yellow"]

x = [[] for row in range(2048)]
y = [[] for row in range(2048)]
f=open("points.out");
line = f.readline()
m = 0
while line:
	p = line.split(",")
	y[int(p[2])].append(p[0])
	x[int(p[2])].append(p[1])
	if m < int(p[2]):
		m = int(p[2])
	line = f.readline()

f.close()
print m
for i in range(2048):
	plt.scatter(x[i], y[i], color=color[i%8])
plt.show()
